// Minimal demo to test if PIMPL is working correctly
// Should compile WITHOUT any gRPC headers

#include <kwdb/client.h>
#include <iostream>

int main() {
    kwdb::IngestConfig config;
    config.ingest_endpoint = "127.0.0.1:9090";
    config.timeout_ms = 5000;

    kwdb::KwdbClient client(config);

    kwdb::Point point("test_measurement");
    point.add_tag("host", "test");
    point.add_field("value", 42.0);

    auto status = client.write(point);
    if (status.ok()) {
        std::cout << "Write successful!" << std::endl;
    } else {
        std::cout << "Write failed: " << status.message << std::endl;
    }

    return 0;
}